﻿jQuery(document).ready(function () {
    
    $('#frBankAccount').submit(function () {
        $('#msg-frBankAccount').html("");
        App.blockUI($('#frBankAccount'), false);
        $.ajax({
            type: "POST",
            url: "/BankAccount/AddBankAccount",
            data: $(this).serialize(),
            success: function (data) {
                $('#msg-frBankAccount').html(data);
                App.unblockUI($('#frBankAccount'));
            },
            error: function (xhr, ajaxOptions, thrownError) {
                $('#msg-frBankAccount').html("Load failed");
                App.unblockUI($('#frBankAccount'));
            }
        });
        return false;
    });
});